package com.e3.basdoc.goods.service;

import java.util.List;

import com.e3.basdoc.goods.model.GoodsModel;
import com.e3.core.base.ModelCacheManager;
import com.e3.core.cache.CacheManager;

public class GoodsCacheManager extends ModelCacheManager<GoodsModel>{
	
	public final static String GOODS_CACHE = CacheManager.DEFAULT_LRU_CACHE;
	
	public static GoodsCacheManager INSTANCE = new GoodsCacheManager();
	
	public void put(GoodsModel model){
		putModel(GOODS_CACHE, model);
	}

	public GoodsModel get(Long id) {
		return getModel(GOODS_CACHE, id);
	}
	
	public void remove(List<Long> ids){
		removeModels(GOODS_CACHE,ids);
	}

}
